<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<h1>登录</h1>
<form id="loginForm" name="loginForm" action="/login" method="post">
    <div>
        <label>用户名：</label>
        <input type="text" name="username" required/>
    </div>
    <div>
        <label>密码：</label>
        <input type="password" name="password" required/>
    </div>
    <button type="submit">登录</button>
    <div th:if="${param.error}">
        <p>用户名或密码错误，请重新登录！</p>
    </div>
</form>
</body>
</html>